package com.devtooles.devtoolesdemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
public class DevtoolesDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DevtoolesDemoApplication.class, args);
    }

    @RestController
    static final class MyController {
        @GetMapping("/gethello")
        public String getHello() {
            return "hello!\n";

        }

        @GetMapping("/getName")
        public String getName() {
            System.out.println("怎么不打印");
            return "xiaoming!\n";
        }

        @GetMapping("setName")
        public String setName() {
            return "ceshi\n";
        }
    }

}
